﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ESRI.ArcGIS.Carto;
using MyEngineExercise.我的扩展.枚举;
using System.ComponentModel;

namespace MyEngineExercise.我的扩展.自定义事件参数类
{
    /// <summary>
    /// 图层改变前发生，即删除前或添加前
    /// </summary>
    public sealed class LayerChangingEventArgs:CancelEventArgs
    {
        private ILayer _layer = null;
        public ILayer Layer { get { return _layer; } }


        private LayerAction _layerAction = LayerAction.none;
        public LayerAction LayerAction{get{return _layerAction;}}


        public LayerChangingEventArgs(ILayer layer,LayerAction layerAction)
        {
            _layer = layer;
            _layerAction = layerAction;
        }
    }
}
